package com.tmt.datatable.editor.instance.impl;

import com.tmt.datatable.editor.instance.INewInstance;

import java.util.Map;

/**
 * Created by ThreeManTeam on 2017/6/5.
 */
public class MapInstancer implements INewInstance {


    @Override
    public boolean support(Class clazz) {
        return Map.class.isAssignableFrom(clazz);
    }

    @Override
    public <T> Object newInstance(T object, String fieldName, Map<String, Object> newRootPropObjectMap){
        return object;
    }
}
